Fix profiling
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 28 Apr 2008 17:14:33 +0000 (17:14 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 28 Apr 2008 17:14:33 +0000 (17:14 +0000)
includes/Parser.php

index 4d2bd38..a5162d6 100644 (file)
@@ -1520,6 +1520,8 @@ class Parser
                }
 
                if( is_null( $this->mTitle ) ) {
+                       wfProfileOut( $fname );
+                       wfProfileOut( $fname.'-setup' );
                        throw new MWException( __METHOD__.": \$this->mTitle is null\n" );
                }
                $nottalk = !$this->mTitle->isTalkPage();
@@ -1609,6 +1611,7 @@ class Parser
                        # should be external links.
                        if (preg_match('/^\b(?:' . wfUrlProtocols() . ')/', $m[1])) {
                                $s .= $prefix . '[[' . $line ;
+                               wfProfileOut( "$fname-misc" );
                                continue;
                        }